package com.AFH.test;

import android.graphics.Paint;

public class Text extends Thread {
	String str;
	float xPos;
	float yPos;
	Paint paint;
	int alpha = 250;
	boolean flag = false;

	public Text(String str, float xPos, float yPos, Paint paint) {
		super.setName("Text");
		this.str = str;
		this.xPos = xPos;
		this.yPos = yPos;
		this.paint = paint;
		flag = true;
		

	}

	@Override
	public void run() {
		while (flag) {
			if (alpha > 0) {
				paint.setAlpha(alpha);
				alpha -= 25;
				
			}
			else flag=false;
			try {
				Thread.sleep(200);
			} catch (InterruptedException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}
	}

}
